import { useGridView } from '@ibiz-template/react-util';
import { ViewLayout } from '../../common';
import { GridControl } from '../../widget';

/**
 * 表格视图
 *
 * @author chitanda
 * @date 2022-07-22 17:07:39
 * @export
 * @return {*}
 */
export function GridView() {
  const c = useGridView('PSSYSAPPS/Web/PSAPPDEVIEWS/bookGridView.json');
  if (!c.complete) {
    return <div>loading</div>;
  }
  return (
    <ViewLayout title='标题'>
      <GridControl model={c.model.grid} />
    </ViewLayout>
  );
}
